<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function Flower(n,c,u)
			{
				this.name=n;
				this.chandi=c;
				this.uses=u;
				this.showName=function(){
					alert("名称："+this.name+",产地："+this.chandi+",用途："+this.uses);
				}
				//return this;
				
			}
			var f3=new Flower("荷花","全国所有池塘","观赏","额外的！");
			f3.showName();
			var f4=new Flower("菊花");
			f4.showName();
			/**var f1=new Flower("玫瑰","山东","观赏");
			
			var f2=new Flower("向日葵","全国","食用");
			f1.showName();
			f2.showName();
			f2.chandi="黄河下游和整个长江流域";
			f2.showName();
			
			alert(f1.constructor==Flower);
			alert(f2.constructor==Flower);***/
			//假装在重载
			
		</script>
	</head>
	<body>
	</body>
</html>
